<div class="fc-mall-comment-head">
    <div class="row ">
        <div class="col-sm-3 text-center">
            <p class="fc-mall-comment-fen">{number_format($comment.avgsort, 1)}</p>
            <div class="fc-mall-comment-xin">
                {dr_mall_star_level($comment.avgsort)}
            </div>
        </div>
        <div class="col-sm-6">
            <div class="ds-review" id="dr_review_post">
                <ul>
                    {loop $review.option $i $name}
                    <li>
                        <span class="opname">{$name}：</span>
                        <span class="fc-mall-comment-xin">
                                   {dr_mall_star_level($comment['sort'.$i])}
                            </span>
                        （{number_format($comment['sort'.$i], 1)}）
                    </li>
                    {/loop}
                </ul>
            </div>
        </div>
    </div>
    <div class="row fc-mall-comment-list-params">
        <div class="col-sm-12 text-right">
            <ul class="nav nav-tabs ">
                <li class="{if !$type}active{/if}">
                    <a  href="javascript:{$js}(0, 1);"> 最新 </a>
                </li>
                <li class="{if 1==$type}active{/if}">
                    <a  href="javascript:{$js}(1, 1);"> 最早 </a>
                </li>
                <li class="{if 2==$type}active{/if}">
                    <a  href="javascript:{$js}(2, 1);"> 最热 </a>
                </li>
                <li class="{if 3==$type}active{/if}">
                    <a  href="javascript:{$js}(3, 1);"> 评分最高 </a>
                </li>
                <li class="{if 4==$type}active{/if}">
                    <a  href="javascript:{$js}(4, 1);"> 晒图 </a>
                </li>
            </ul>

        </div>

    </div>
</div>



<div class="product-comments-block-tab fc-mall-comments-list" id="dr_comment_list">
    {loop $list $t}
    <div class="comment row">
        <div class="col-sm-2 author text-center">
            <div class="ds-avatar">
                    <img src="{dr_avatar($t.uid)}" >
            </div>
            <div class="ds-comment-header">
                    {$t.author}
            </div>
            <div class="grade">
                <span class="reviewRating">{dr_mall_star_level($t.avgsort)}</span>
                <p>{number_format($t.avgsort, 1)}</p>
            </div>
        </div>
        <div class="col-sm-9 commnet-dettail">

            <div class="info-time">
                {dr_date($t.inputtime)}
            </div>

            {nl2br($t.content)}
            {if $t[image]}
            <div class="row fc-mall-comment-image">
                {php $t[image]=dr_string2array($t[image]);}
                {loop $t[image][file] $i $file}
                <div class="col-md-2">
                    <div class="thumbnail">
                        <a href="{dr_get_file($file)}" target="_blank"><img src="{dr_get_file($file)}" ></a>
                    </div>
                </div>
                {/loop}
            </div>
            {/if}
        </div>
    </div>
    {/loop}
</div>

<div class="fc-comment-list-page text-center">
    {$ajax_pages}
</div>
